<body class="body">
  <div class="login">
  <h2>更改您的密码</h2>

  <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>
    <%= devise_error_messages! %>
    <%= f.hidden_field :reset_password_token %>

    <div class="login">
      <%= f.label :password, "密码：" %><br />
      <% if @minimum_password_length %>
        <em>至少(<%= @minimum_password_length %>位密码)</em><br />
      <% end %>
      <%= f.password_field :password, autofocus: true, autocomplete: "off" %>
    </div>

    <div class="login">
      <%= f.label :password_confirmation, "确认新密码" %><br />
      <%= f.password_field :password_confirmation, autocomplete: "off" %>
    </div>

    <div class="actions">
      <%= f.submit "更改您的密码" %>
    </div>
  <% end %>

  <%= render "devise/shared/links" %>
  </div>
</body>
